from apps.vadmin.op_drf.serializers import CustomModelSerializer
from apps.vadmin.analysis.models import Batch


# ================================================= #
# ************** 批次管理 序列化器  ************** #
# ================================================= #
class BatchSerializer(CustomModelSerializer):
    """
    字典管理 简单序列化器
    """

    class Meta:
        model = Batch
        fields = ['batch_num',]





class BatchCreateUpdateSerializer(CustomModelSerializer):
    """
    字典管理 创建/更新时的列化器
    """

    class Meta:
        model = Batch
        fields = '__all__'
